package com.yht.redbook.data.align.domain.mapper;

import org.apache.ibatis.annotations.Param;

public interface UpdateRecordMapper {

    int updateUserFollowingTotalByUserId(@Param("userId") long userId, @Param("followingTotal") int followingTotal);

    int updateNoteLikeTotalByNoteId(@Param("noteId") long noteId, @Param("likeTotal") int noteLikeTotal);

    int updateNoteCollectTotalByNoteId(@Param("noteId") long noteId, @Param("collectTotal") int noteCollectTotal);

    int updateUserFansTotalByUserId(@Param("userId") long userId, @Param("fansTotal") int fansTotal);

    int updateUserLikeTotalByUserId(@Param("userId") long userId, @Param("likeTotal") int likeTotal);

    int updateUserCollectTotalByUserId(@Param("userId") long userId, @Param("collectTotal") int collectTotal);

    int updateUserPublishTotalByUserId(@Param("userId") long userId, @Param("noteTotal") int noteTotal);
}
